package Class_03_08;

import java.util.Arrays;
import java.util.Scanner;
import java.util.*;

public class Main {
    public static void main(String[] args) {
        int count = 0;
        Scanner scanner = new Scanner(System.in);

        //write your code here......
        int flag = 0;
        while(scanner.hasNext())
        {
            if(scanner.nextInt() > 0)
            {
                flag++;
            }
            else
                break;
        }
        System.out.println(flag);
    }
}

